﻿/*----------------------------------------------------------------------------------------
*
*  Copyright 2019, Gao Hai Hui, <fromzeropoint@126.com>.  All rights reserved.
*  https://gitee.com/helloworldghh/xoskit.git
*  Use of this source code is governed by a MIT license
*  that can be found in the License file.
*
----------------------------------------------------------------------------------------*/
#ifndef __C3547580_9D53_4249_8BE7_2685D7424F51__
#define __C3547580_9D53_4249_8BE7_2685D7424F51__

/////////////////////////////////////////////////////////////////////////////////////////
// 
namespace xos_box
{
    class i_msg;

    // 
    // thread interface
    // 
    class i_threads : public xos::i_release
    {
    public:
        virtual ~i_threads(){}

    public:
        // 
        // nNum = 0, means cpu core num
        // if not set, default is 0
        // 
        virtual int set_max_thread_num( int nNum ) = 0;
        virtual int notify( xos_box::i_msg *& pMsg ) = 0;
    };
}

#endif // __C3547580_9D53_4249_8BE7_2685D7424F51__
